package cn.wolfcode.service;

import cn.wolfcode.domain.Employee;
import cn.wolfcode.qo.EmployeeQueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IEmployeeService {
    int deleteByPrimaryKey(Long id);

    void insert(Employee record, Long[] roleIds);

    Employee selectByPrimaryKey(Long id);

    List<Employee> selectAll();

    void updateByPrimaryKey(Employee record, Long[] roleIds);

    PageInfo<Employee> query(EmployeeQueryObject qo);


    boolean checkUsername(String username);

    Employee login(String username, String password);
}
